package io.wdb.modules.activity.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.wdb.modules.activity.wx.dao.MarketPrizeDao;
import io.wdb.modules.activity.wx.entity.MarketPrizeEntity;
import io.wdb.modules.activity.wx.service.MarketPrizeService;

import java.util.List;
import java.util.Map;



@Service("marketPrizeService")
public class MarketPrizeServiceImpl implements MarketPrizeService {
	@Autowired
	private MarketPrizeDao marketPrizeDao;
	
	@Override
	public MarketPrizeEntity queryObject(Long id){
		return marketPrizeDao.queryObject(id);
	}
	
	@Override
	public List<MarketPrizeEntity> queryList(Map<String, Object> map){
		return marketPrizeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return marketPrizeDao.queryTotal(map);
	}
	
	@Override
	public void save(MarketPrizeEntity marketPrize){
		marketPrizeDao.save(marketPrize);
	}
	
	@Override
	public void update(MarketPrizeEntity marketPrize){
		marketPrizeDao.update(marketPrize);
	}
	
	@Override
	public void delete(Long id){
		marketPrizeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		marketPrizeDao.deleteBatch(ids);
	}
	
}
